<?php

use Illuminate\Database\Seeder;

class Control extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
      $p = Factory('App\Models\PriDeviceInfo', 1)->create();
      
      Factory('App\Models\RealControlDevice', 1)->create(['pdi_index'=>$p->first()->pdi_index]);
    }
}
